cmake_minimum_required(VERSION 3.4.1)

project(demo)
# debug调试配置
SET(CMAKE_BUILD_TYPE "Debug")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g")

add_executable(test test.cpp)